---
layout: "default"
title: "Operator: >="
description: "Swift documentation for the '>=' operator."
root: "/v2.2"
---

<code class="language-swift">infix operator &gt;= {
    associativity none
    precedence 130
}</code>

<h3>Declarations</h3>

<div class="declaration" id="func-gteq_-swiftnsoperatingsystemversion-rhs_-swiftnsoperatingsystemversion">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq_-swiftnsoperatingsystemversion-rhs_-swiftnsoperatingsystemversion">func &gt;=(<wbr>_:<wbr> _SwiftNSOperatingSystemVersion, rhs: _SwiftNSOperatingSystemVersion)</a>
        
<div class="comment collapse" id="comment-func-gteq_-swiftnsoperatingsystemversion-rhs_-swiftnsoperatingsystemversion"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=(lhs: _SwiftNSOperatingSystemVersion, rhs: _SwiftNSOperatingSystemVersion) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq_-double-rhs_-double">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq_-double-rhs_-double">func &gt;=(<wbr>_:<wbr> Double, rhs: Double)</a>
        
<div class="comment collapse" id="comment-func-gteq_-double-rhs_-double"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=(lhs: Double, rhs: Double) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq_-float-rhs_-float">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq_-float-rhs_-float">func &gt;=(<wbr>_:<wbr> Float, rhs: Float)</a>
        
<div class="comment collapse" id="comment-func-gteq_-float-rhs_-float"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=(lhs: Float, rhs: Float) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq_-float80-rhs_-float80">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq_-float80-rhs_-float80">func &gt;=(<wbr>_:<wbr> Float80, rhs: Float80)</a>
        
<div class="comment collapse" id="comment-func-gteq_-float80-rhs_-float80"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=(lhs: Float80, rhs: Float80) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq_-int-rhs_-int">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq_-int-rhs_-int">func &gt;=(<wbr>_:<wbr> Int, rhs: Int)</a>
        
<div class="comment collapse" id="comment-func-gteq_-int-rhs_-int"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=(lhs: Int, rhs: Int) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq_-int8-rhs_-int8">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq_-int8-rhs_-int8">func &gt;=(<wbr>_:<wbr> Int8, rhs: Int8)</a>
        
<div class="comment collapse" id="comment-func-gteq_-int8-rhs_-int8"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=(lhs: Int8, rhs: Int8) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq_-int16-rhs_-int16">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq_-int16-rhs_-int16">func &gt;=(<wbr>_:<wbr> Int16, rhs: Int16)</a>
        
<div class="comment collapse" id="comment-func-gteq_-int16-rhs_-int16"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=(lhs: Int16, rhs: Int16) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq_-int32-rhs_-int32">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq_-int32-rhs_-int32">func &gt;=(<wbr>_:<wbr> Int32, rhs: Int32)</a>
        
<div class="comment collapse" id="comment-func-gteq_-int32-rhs_-int32"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=(lhs: Int32, rhs: Int32) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq_-int64-rhs_-int64">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq_-int64-rhs_-int64">func &gt;=(<wbr>_:<wbr> Int64, rhs: Int64)</a>
        
<div class="comment collapse" id="comment-func-gteq_-int64-rhs_-int64"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=(lhs: Int64, rhs: Int64) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq_-uint-rhs_-uint">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq_-uint-rhs_-uint">func &gt;=(<wbr>_:<wbr> UInt, rhs: UInt)</a>
        
<div class="comment collapse" id="comment-func-gteq_-uint-rhs_-uint"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=(lhs: UInt, rhs: UInt) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq_-uint8-rhs_-uint8">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq_-uint8-rhs_-uint8">func &gt;=(<wbr>_:<wbr> UInt8, rhs: UInt8)</a>
        
<div class="comment collapse" id="comment-func-gteq_-uint8-rhs_-uint8"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=(lhs: UInt8, rhs: UInt8) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq_-uint16-rhs_-uint16">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq_-uint16-rhs_-uint16">func &gt;=(<wbr>_:<wbr> UInt16, rhs: UInt16)</a>
        
<div class="comment collapse" id="comment-func-gteq_-uint16-rhs_-uint16"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=(lhs: UInt16, rhs: UInt16) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq_-uint32-rhs_-uint32">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq_-uint32-rhs_-uint32">func &gt;=(<wbr>_:<wbr> UInt32, rhs: UInt32)</a>
        
<div class="comment collapse" id="comment-func-gteq_-uint32-rhs_-uint32"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=(lhs: UInt32, rhs: UInt32) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq_-uint64-rhs_-uint64">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq_-uint64-rhs_-uint64">func &gt;=(<wbr>_:<wbr> UInt64, rhs: UInt64)</a>
        
<div class="comment collapse" id="comment-func-gteq_-uint64-rhs_-uint64"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=(lhs: UInt64, rhs: UInt64) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq-a_-comparable-b_-comparable-c_-comparable-d_-comparable-e_-comparable-f_-comparable_-a-b-c-d-e-f-rhs_-a-b-c-d-e-f">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq-a_-comparable-b_-comparable-c_-comparable-d_-comparable-e_-comparable-f_-comparable_-a-b-c-d-e-f-rhs_-a-b-c-d-e-f">func <wbr>&gt;= &lt;A :<wbr> Comparable, B :<wbr> Comparable, C :<wbr> Comparable, D :<wbr> Comparable, E :<wbr> Comparable, F : Comparable&gt;(<wbr>_: (<wbr>A, B, C, D, E, F), rhs: (A, B, C, D, E, F))</a>
        
<div class="comment collapse" id="comment-func-gteq-a_-comparable-b_-comparable-c_-comparable-d_-comparable-e_-comparable-f_-comparable_-a-b-c-d-e-f-rhs_-a-b-c-d-e-f"><div class="p">
    <p>A <a href="https://en.wikipedia.org/wiki/Lexicographical_order">lexicographical order</a>
over tuples of <code>Comparable</code> elements.</p>

<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the
first tuple is <code>&gt;=</code> the second tuple iff <code>a1 &gt; b1</code> or
(<code>a1 == b1</code> and <code>(a2, ..., aN) &gt;= (b2, ..., bN)</code>).</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=&lt;A : Comparable, B : Comparable, C : Comparable, D : Comparable, E : Comparable, F : Comparable&gt;(lhs: (A, B, C, D, E, F), rhs: (A, B, C, D, E, F)) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq-a_-comparable-b_-comparable-c_-comparable-d_-comparable-e_-comparable_-a-b-c-d-e-rhs_-a-b-c-d-e">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq-a_-comparable-b_-comparable-c_-comparable-d_-comparable-e_-comparable_-a-b-c-d-e-rhs_-a-b-c-d-e">func <wbr>&gt;= &lt;A :<wbr> Comparable, B :<wbr> Comparable, C :<wbr> Comparable, D :<wbr> Comparable, E : Comparable&gt;(<wbr>_: (<wbr>A, B, C, D, E), rhs: (A, B, C, D, E))</a>
        
<div class="comment collapse" id="comment-func-gteq-a_-comparable-b_-comparable-c_-comparable-d_-comparable-e_-comparable_-a-b-c-d-e-rhs_-a-b-c-d-e"><div class="p">
    <p>A <a href="https://en.wikipedia.org/wiki/Lexicographical_order">lexicographical order</a>
over tuples of <code>Comparable</code> elements.</p>

<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the
first tuple is <code>&gt;=</code> the second tuple iff <code>a1 &gt; b1</code> or
(<code>a1 == b1</code> and <code>(a2, ..., aN) &gt;= (b2, ..., bN)</code>).</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=&lt;A : Comparable, B : Comparable, C : Comparable, D : Comparable, E : Comparable&gt;(lhs: (A, B, C, D, E), rhs: (A, B, C, D, E)) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq-a_-comparable-b_-comparable-c_-comparable-d_-comparable_-a-b-c-d-rhs_-a-b-c-d">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq-a_-comparable-b_-comparable-c_-comparable-d_-comparable_-a-b-c-d-rhs_-a-b-c-d">func <wbr>&gt;= &lt;A :<wbr> Comparable, B :<wbr> Comparable, C :<wbr> Comparable, D : Comparable&gt;(<wbr>_: (<wbr>A, B, C, D), rhs: (A, B, C, D))</a>
        
<div class="comment collapse" id="comment-func-gteq-a_-comparable-b_-comparable-c_-comparable-d_-comparable_-a-b-c-d-rhs_-a-b-c-d"><div class="p">
    <p>A <a href="https://en.wikipedia.org/wiki/Lexicographical_order">lexicographical order</a>
over tuples of <code>Comparable</code> elements.</p>

<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the
first tuple is <code>&gt;=</code> the second tuple iff <code>a1 &gt; b1</code> or
(<code>a1 == b1</code> and <code>(a2, ..., aN) &gt;= (b2, ..., bN)</code>).</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=&lt;A : Comparable, B : Comparable, C : Comparable, D : Comparable&gt;(lhs: (A, B, C, D), rhs: (A, B, C, D)) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq-a_-comparable-b_-comparable-c_-comparable_-a-b-c-rhs_-a-b-c">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq-a_-comparable-b_-comparable-c_-comparable_-a-b-c-rhs_-a-b-c">func <wbr>&gt;= &lt;A :<wbr> Comparable, B :<wbr> Comparable, C : Comparable&gt;(<wbr>_: (<wbr>A, B, C), rhs: (A, B, C))</a>
        
<div class="comment collapse" id="comment-func-gteq-a_-comparable-b_-comparable-c_-comparable_-a-b-c-rhs_-a-b-c"><div class="p">
    <p>A <a href="https://en.wikipedia.org/wiki/Lexicographical_order">lexicographical order</a>
over tuples of <code>Comparable</code> elements.</p>

<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the
first tuple is <code>&gt;=</code> the second tuple iff <code>a1 &gt; b1</code> or
(<code>a1 == b1</code> and <code>(a2, ..., aN) &gt;= (b2, ..., bN)</code>).</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=&lt;A : Comparable, B : Comparable, C : Comparable&gt;(lhs: (A, B, C), rhs: (A, B, C)) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq-a_-comparable-b_-comparable_-a-b-rhs_-a-b">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq-a_-comparable-b_-comparable_-a-b-rhs_-a-b">func <wbr>&gt;= &lt;A :<wbr> Comparable, B : Comparable&gt;(<wbr>_: (<wbr>A, B), rhs: (A, B))</a>
        
<div class="comment collapse" id="comment-func-gteq-a_-comparable-b_-comparable_-a-b-rhs_-a-b"><div class="p">
    <p>A <a href="https://en.wikipedia.org/wiki/Lexicographical_order">lexicographical order</a>
over tuples of <code>Comparable</code> elements.</p>

<p>Given two tuples <code>(a1, a2, ..., aN)</code> and <code>(b1, b2, ..., bN)</code>, the
first tuple is <code>&gt;=</code> the second tuple iff <code>a1 &gt; b1</code> or
(<code>a1 == b1</code> and <code>(a2, ..., aN) &gt;= (b2, ..., bN)</code>).</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=&lt;A : Comparable, B : Comparable&gt;(lhs: (A, B), rhs: (A, B)) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq-t_-comparable_-t-rhs_-t">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq-t_-comparable_-t-rhs_-t">func <wbr>&gt;= &lt;T : Comparable&gt;(<wbr>_:<wbr> T, rhs: T)</a>
        
<div class="comment collapse" id="comment-func-gteq-t_-comparable_-t-rhs_-t"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=&lt;T : Comparable&gt;(lhs: T, rhs: T) -&gt; Bool</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-gteq-t_-comparable_-t-rhs_-t">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-gteq-t_-comparable_-t-rhs_-t">func <wbr>&gt;= &lt;T : Comparable&gt;(<wbr>_:<wbr> T?, rhs: T?)</a>
        
<div class="comment collapse" id="comment-func-gteq-t_-comparable_-t-rhs_-t"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func &gt;=&lt;T : Comparable&gt;(lhs: T?, rhs: T?) -&gt; Bool</code>
    
    
</div></div>
</div>
